'use strict';

module.exports = {
  get pager() {
    let query = this.query;
    let pageSize = parseInt(query.pageSize || 20),
      current = parseInt(query.current || 1);
    return {
      current,
      pageSize,
    };
  },
};
